import fetch from '@/utils/fetch';


// 说明：添加上报数据
// 接口：api/schedule/flHydrantReportRecord
// 请求类型：Post
export function addFlHydrantReportRecord(obj) {
    return fetch({
        url: 'api/schedule/flHydrantReportRecord',
        method: 'post',
        data: obj
    });
}

// 说明：删除上报数据
// 接口：api/schedule/flHydrantReportRecord/ids
// 请求类型：Delete
export function deleteFlHydrantReportRecord(idArr) {
    return fetch({
        url: 'api/schedule/flHydrantReportRecord/del',
        method: 'delete',
        data: idArr
    });
}

// 说明：修改上报数据
// 接口：api/schedule/flHydrantReportRecord/{id}
// 请求类型：Put
export function modifyFlHydrantReportRecord(id, obj) {
    return fetch({
        url: 'api/schedule/flHydrantReportRecord/' + id,
        method: 'put',
        data: obj
    })
}

// 说明：上报数据分页查询(条件搜索)
// 接口：api/schedule/flHydrantReportRecord/search/{page}/{size}
// 请求类型：Post
export function searchFlHydrantReportRecord(page, size, obj) {
    obj["reportDate"] = "2023-05-05 15:30:02",
        obj["reportFlag"] = 0
    return fetch({
        url: 'api/schedule/flHydrantReportRecord/search/' + page + '/' + size,
        method: 'post',
        data: obj
    });
}

// 说明：获取单个上报数据
// 接口：api/schedule/flHydrantReportRecord/{id}
// 请求类型：get
export function getFlHydrantReportRecord(id) {
    return fetch({
        url: 'api/schedule/flHydrantReportRecord/' + id,
        method: 'get'
    })
}

// 说明：上报数据导出Excel模板
// 接口：api/schedule/flHydrantReportRecord/exprotExcelModel
// 请求类型：get
export function downTem() {
    return fetch({
        url: 'api/schedule/flHydrantReportRecord/exprotExcelModel',
        responseType: 'blob',
        method: 'get'
    })
}

// 说明：上报数据导出Excel数据
// 接口：api/schedule/flHydrantReportRecord/exprotXls/{ids}
// 请求类型：post
export function exprotXls(ids, obj) {
    return fetch({
        url: 'api/schedule/flHydrantReportRecord/exprotXls/' + ids,
        responseType: 'blob',
        method: 'post',
        data: obj
    })
}

// 说明：上报数据导入
// 接口：api/schedule/flHydrantReportRecord/importXls
// 请求类型：post
export function importXls() {
    return fetch({
        url: 'api/schedule/flHydrantReportRecord/importXls',
        method: 'post'
    })
}